package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.SysDictData;
import com.ruoyi.system.domain.dto.SysDictDataDTO;
import com.ruoyi.system.mapper.SysDictDataMapper;
import com.ruoyi.system.service.ISysDictDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * 字典 业务层处理
 */
@Service
public class SysDictDataServiceImpl extends ServiceImpl<SysDictDataMapper, SysDictData> implements ISysDictDataService {
    @Resource
    private SysDictDataMapper sysDictDataMapper;
    @Override
    public List<SysDictData> getDictDataList(SysDictDataDTO params) {
        return sysDictDataMapper.getDictDataList(params);
    }

    @Override
    public SysDictData getByValue(String dictType, String dictValue) {
        return sysDictDataMapper.getByValue(dictType, dictValue);
    }
}
